package com.sunyur.tailor.channel.service.middle.purchase;

import com.sunyur.tailor.channel.common.inner.base.MsgResultCode;
import com.sunyur.tailor.channel.common.middle.base.ChannelResult;
import com.sunyur.tailor.channel.service.inner.workflow.param.WorkFlowSyncTaskParam;

/**
 *
 * @Author 99288
 * @Description 外部请购接口
 * @Date 22:31 2021/7/7
 * @Param
 * @return
 **/
public interface MiddlePurchaseService {
    /**
     * 同步外部请购单审核结果
     */
    ChannelResult syncAudit(WorkFlowSyncTaskParam workFlowSyncTaskParam);

    /**
     * 同步请购单到外部系统
     */
    ChannelResult syncCreate(MsgResultCode msgResultCode) throws Exception;

    /**
     * 请购流程事件
     */
    ChannelResult process(MsgResultCode msgResultCode) throws Exception;

    /**
     * 需求行处理事件
     */
    ChannelResult demandOperate(MsgResultCode msgResultCode) throws Exception;


}
